<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/10/17 10:59
 * Desc: 导游
 */
class Request_Api_V2_Member_Guide extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);

        $this->validation->rule('mid', ['Rule_Member', 'need_member']);
    }

    public function is_guide()
    {
        return $this;
    }

    public function certify_status()
    {
        return $this;
    }

    public function certify()
    {
        $this->rules = [
            ['guide_code', ['not_empty']],
            ['guide_pic', ['not_empty']],
        ];

        return $this;
    }

    public function get_qrcode()
    {
        return $this;
    }

    public function record()
    {
        $this->rules = [
            ['pagesize', ['not_empty', 'digit', $this->rule_min(1)]],
            ['page', ['not_empty','digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function scan_code()
    {
        $this->rules = [
            ['code', ['not_empty']],
        ];

        return $this;
    }

    public function start_service()
    {
        $this->rules = [
            ['ordersn', ['not_empty']],
        ];

        return $this;
    }

    public function end_service()
    {
        $this->rules = [
            ['ordersn', ['not_empty']],
        ];

        return $this;
    }

}